﻿@model Guan.CMS.Web.ViewModels.Product.ProductFormModel
@{
    ViewBag.Title = "新增产品";
    ViewBag.SectionTitleImage = "ico-catalog.png";
}
<div class="section-header">
    <div class="title">
        @if (ViewBag.SectionTitleImage != null)
        {
            <img src="@Url.Content("~/Content/Images/Admin/" + ViewBag.SectionTitleImage)" alt="" />
        }
        @ViewBag.Title
    </div>
    <div class="options"></div>
</div>
<div class="section-body">
@using (Html.BeginForm())
{
    @Html.ValidationSummary(true)

    <div class="editor-label">
        @Html.LabelFor(model => model.Name)
    </div>
    <div class="editor-field">
        @Html.EditorFor(model => model.Name)
        @Html.ValidationMessageFor(model => model.Name)
    </div>

    <div class="editor-label">
        @Html.LabelFor(model => model.ImageUrl)
    </div>
    <div class="editor-field">
        @Html.EditorFor(model => model.ImageUrl)
        @Html.ValidationMessageFor(model => model.ImageUrl)
    </div>

    <div class="editor-label">
        @Html.LabelFor(model => model.ShortDescription)
    </div>
    <div class="editor-field">
        @Html.EditorFor(model => model.ShortDescription)
        @Html.ValidationMessageFor(model => model.ShortDescription)
    </div>

    <div class="editor-label">
        @Html.LabelFor(model => model.FullDescription)
    </div>
    <div class="editor-field">
        @Html.EditorFor(model => model.FullDescription)
        @Html.ValidationMessageFor(model => model.FullDescription)
    </div>

    <div class="editor-label">
        @Html.LabelFor(model => model.IsRecommend)
    </div>
    <div class="editor-field">
        @Html.EditorFor(model => model.IsRecommend)
        @Html.ValidationMessageFor(model => model.IsRecommend)
    </div>

    <div class="editor-label">
        @Html.LabelFor(model => model.MetaKeywords)
    </div>
    <div class="editor-field">
        @Html.EditorFor(model => model.MetaKeywords)
        @Html.ValidationMessageFor(model => model.MetaKeywords)
    </div>

    <div class="editor-label">
        @Html.LabelFor(model => model.MetaDescription)
    </div>
    <div class="editor-field">
        @Html.EditorFor(model => model.MetaDescription)
        @Html.ValidationMessageFor(model => model.MetaDescription)
    </div>

    <div class="editor-label">
        @Html.LabelFor(model => model.MetaTitle)
    </div>
    <div class="editor-field">
        @Html.EditorFor(model => model.MetaTitle)
        @Html.ValidationMessageFor(model => model.MetaTitle)
    </div>

    <div class="editor-label">
        @Html.LabelFor(model => model.IsPublished)
    </div>
    <div class="editor-field">
        @Html.EditorFor(model => model.IsPublished)
        @Html.ValidationMessageFor(model => model.IsPublished)
    </div>

    <div class="editor-label">
        @Html.LabelFor(model => model.IsDeleted)
    </div>
    <div class="editor-field">
        @Html.EditorFor(model => model.IsDeleted)
        @Html.ValidationMessageFor(model => model.IsDeleted)
    </div>

    <div class="editor-label">
        @Html.LabelFor(model => model.UpdatedTime)
    </div>
    <div class="editor-field">
        @Html.EditorFor(model => model.UpdatedTime)
        @Html.ValidationMessageFor(model => model.UpdatedTime)
    </div>

    <p>
        <input type="submit" value="新增" />
    </p>
}
    <div>
        @Html.ActionLink("Back to List", "Index")
    </div>
</div>
@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}